package com.ai.module.business.controller;

import com.ai.module.business.domain.req.CommentBusinessReq;
import com.ai.module.business.domain.vo.UserMessage;
import com.ai.module.business.service.LikeCollectRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author: MrHe
 * @create: 2024-01-25 02:13
 * @description:
 **/

@RestController
@RequestMapping("/business/record")
@Api(tags = "业务记录")
public class LikeRecordController {

    @Autowired
    private LikeCollectRecordService likeCollectRecordService;


    @PostMapping
    @ApiOperation("点赞,收藏或者取消")
    public void collectLike(@RequestBody CommentBusinessReq commentBusinessReq){
        likeCollectRecordService.collectLike(commentBusinessReq);
    }

    @PostMapping("test")
    @ApiOperation("点赞test,")
    public void test(@RequestBody UserMessage commentBusinessReq){

    }

}
